import Mock from 'mockjs'

const data=Mock.mock({
    'list|100':[{
        'img':'@image(100x100,@color)',
        'title':'@ctitle(10)',
        'num|10-50':1,
        'num1|2000-2020':1,
        'num2|1-10':1,
        'desc':'@cword(8)',
    }]
})

Mock.mock('/api/list',()=>{
    return {
        code:200,
        data:data.list
    }
})